package com.example.xwweibo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//@ComponentScan("com.example.xwcommon.config")会覆盖自身扫描路径,不能扫描到配置类
@ComponentScan(value = {"com.example.xwweibo","com.example.xwcommon"})
//@ComponentScan("com.example")放大扫描范围也开始代替路径数组的扫描
@EnableFeignClients("com.example.xwcommon.service")
@MapperScan("com.example.xwweibo.mapper")
@RefreshScope
public class XwWeiboApplication {

    public static void main(String[] args) {
        SpringApplication.run(XwWeiboApplication.class, args);
    }

}
